package com.haihong.provider.provider.controller;

import com.haihong.provider.provider.entity.SysUser;
import com.haihong.provider.provider.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 人员控制层
 *
 * @author admin
 * @version 1.0  2019/8/20 16:02
 */
@RestController
@RequestMapping(value = "/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "/getInfo")
    public SysUser queryUserInfo(String userName){
        return userService.querUserInfo(userName);
    }

}
